import request from '@/utils/request'

export function getDepartmentInfoList(query) {
  return request({
    url: '/queryDepartmentInfoPage',
    method: 'get',
    params: query
  })
}

export function updateDepartmentInf(data) {
  return request({
    url: '/updateDepartmentInfo',
    method: 'post',
    data
  })
}

export function saveDepartmentInf(data) {
  return request({
    url: '/saveDepartmentInfo',
    method: 'post',
    data
  })
}

export function getDepartmentList(query) {
  return request({
    url: '/getAgencyDepartmentInfoList',
    method: 'get',
    params: query
  })
}
export function getDepartmentTree(query) {
  return request({
    url: '/getDepartmentTree',
    method: 'get',
    params: query
  })
}

export function getDepartmentOptions(query) {
  return request({
    url: '/getDepartmentOptions',
    method: 'get',
    params: query
  })
}
